<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,,user-scalable=0,maximum-scale=1">
    <meta name="format-detection" content="telephone=no" />
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<title>百万民选  王者加冕</title>
    <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/1.0.2/weui.min.css" />
    <link rel="stylesheet" href="http://www.ebama.net/data/attachment/css/swiper.min.css">
	<link href="http://www.ebama.net/data/attachment/css/common.css" rel="stylesheet">
    @yield('css')
    <script src="https://staticfile.qnssl.com/jquery/2.2.1/jquery.min.js"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
        wx.config( <? echo  $js->config(array(
                'checkJsApi',
                'onMenuShareTimeline',
                'onMenuShareAppMessage'
        ), false) ?>);
    </script>
    <script src="{{asset('dist/wechat/js/share.js')}}"></script>
	<!--
	<script>
		$(function(){
		$(".page").height( $(window).height() );
		});
	</script>
	-->
    @yield('js_files')
</head>
<body>
@yield('loadding')
<div class="weui-tab">
@yield('mask')
	<div class="weui-tab__panel" id="container">
		<div class="middle">
			@yield('content')
		</div>
	</div>
	@include ('wechat.layouts.footer')
</div>
@yield('js')
<script>
    function limitwd() {
        //限制字符个数
        $(".bar_m p").each(function(){
            //字符个数
            var maxwidth=30;
            if($(this).text().length>maxwidth){
                $(this).text($(this).text().substring(0,maxwidth));
                $(this).html($(this).html()+"…");
            }
        });
    }
    </script>
<!-- 禁止分享的JS部分-->
{{--<script>--}}
    {{--function onBridgeReady(){--}}
    {{--WeixinJSBridge.call('hideOptionMenu');--}}
{{--}--}}

{{--if (typeof WeixinJSBridge == "undefined"){--}}
            {{--if(document.addEventListener){--}}
                {{--document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);--}}
            {{--}else if (document.attachEvent){--}}
                {{--document.attachEvent('WeixinJSBridgeReady', onBridgeReady);--}}
                {{--document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);--}}
            {{--}--}}
        {{--}else{--}}
            {{--onBridgeReady();--}}
        {{--}--}}

{{--</script>--}}
</body>
</html>
